package com.saa.dept.controller;


import com.saa.common.vo.OmsResultVo;
import com.saa.dept.service.SaaDeptService;
import com.saa.user.po.SaaUserDept;
import com.saa.user.vo.SaaStaffVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

@RestController
@RequestMapping(value = "/saa/dept")
public class SaaDeptController {
    private Logger logger = LoggerFactory.getLogger(SaaDeptController.class);
    @Autowired
    private SaaDeptService saaDeptService;

   /****加载机构树***/
   @RequestMapping(value="/getDeptList")
   public OmsResultVo getDeptList(){
       return OmsResultVo.builder(200, "查询成功", saaDeptService.getSaaDeptList(new ArrayList<SaaUserDept>()));
   }


}
